/**
 * @author tibork
 */
Ext.namespace('Softab');

Softab.changeCurrentEntity = function (tabPanel, tab){
    if (tab.id != "0") {
        entityId = tab.id;
    }
}
Softab.TabsPanel = null;
Softab.GetTabsPanel = function(){
    var AppTabPanel = new Ext.TabPanel({
        region: 'center',
        deferredRender: false,
        activeTab: 0,
        items: [{
            id: '0',
            contentEl: 'center2',
            title: 'SofTAB - CMS ..:::.. Intro',
            autoScroll: true
        }]
    });
	AppTabPanel.on("tabchange", Softab.changeCurrentEntity);
	Softab.TabsPanel = AppTabPanel;
	return AppTabPanel;
}


